package com.iccct.feign.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * comment
 *
 * @author iccct (taowutt1@gmail.com)
 * @since 2021-07-26  16:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Response<T> implements Serializable {
    private Integer code;
    private String msg;
    private T data;

    public Response(String msg, Integer code) {
        this.code = code;
        this.msg = msg;
    }

    public Response(T data, String msg) {
        this.data = data;
        this.msg = msg;
    }

    public Response(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
